package com.ctshk.rpc.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 *  积分收支记录DTO
 * </p>
 *
 * @author 李新科
 * @date 2021/5/31 16:26
 */
@Data
@ApiModel
public class UserTransactionQueryDTO implements Serializable {

    @ApiModelProperty(value="标题")
    private String title;

    @ApiModelProperty(value="日期")
    @JsonFormat(pattern = "yyyy年MM月dd日")
    private LocalDateTime date;

    @ApiModelProperty(value="积分点")
    private BigDecimal point;

    @ApiModelProperty(value="积分类型,1，收入(+)，2支出(-)")
    private Integer type;

    @ApiModelProperty(value="到期天数")
    private Long expireDayNum;

}
